#include <iostream>
using namespace std;

int main(){
    int arr[] = {5,4,3,2,1,0};
    for(int i = 0,j = sizeof(arr)/sizeof(arr[0])-1;i < j;i++,j--){
        int temp = arr[i];
        arr[i] = arr[j];
        arr[j] = temp;
    }
    for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++)
    {
        /* code */
    cout << arr[i] << endl;
    }
    
    return 0;
}